package entity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 项目树
 * 
 * @author raymondwong
 *
 */
public class Tree {

  /**
   * 项目树中的节点
   */
  public Node root;
  
  /**
   * 等待检索的字段
   */
  public List<String> textToSearch;
  
  /**
   * 检索的结果
   */
  public Map<String, String> searchResult;
  
  public Tree() {
    this.root = new Node();
    this.textToSearch = new ArrayList<String>();
    this.searchResult = new HashMap<String, String>();
  }

  public Node getRoot() {
    return this.root;
  }

  public void setRoot(Node node) {
    this.root = node;
  }

  public List<String> getTextToSearch() {
    return textToSearch;
  }

  public void setTextToSearch(List<String> textToSearch) {
    this.textToSearch = textToSearch;
  }

  public Map<String, String> getSearchResult() {
    return searchResult;
  }

  public void setSearchResult(Map<String, String> searchResult) {
    this.searchResult = searchResult;
  }
  
}
